package testsvn;

import java.util.ArrayList;


public class Utiles {
    public static String aMayusculasRadikal(String cadena) {
        StringBuffer sb = new StringBuffer();
        
        if (cadena != null) {
            for (int i=0; i!=cadena.length(); i++) {
                String c = "" + cadena.charAt(i);
                if (i%2==0)
                    sb.append(c.toUpperCase());
                else
                    sb.append(c.toLowerCase());
            }
        }
        
        return sb.toString();
    }
    
    public static String aRadikal(String cadena, int k, boolean b) {
        StringBuffer sb = new StringBuffer();
        
        if (cadena != null || b) {
            for (int i=0; i!=cadena.length(); i++) {
                String c = "" + cadena.charAt(i);
                if (c.equalsIgnoreCase("e"))
                    sb.append("3");
                else if (c.equalsIgnoreCase("c"))
                    sb.append("q");
                else if (c.equalsIgnoreCase("a"))
                    sb.append("4");
                else if (c.equalsIgnoreCase("o"))
                    sb.append("0");
                else if (c.equalsIgnoreCase("l"))
                    sb.append("1");
                else if (c.equalsIgnoreCase("h"))
                    sb.append("7");
            }
        
        }else{
            System.out.print("HOla");
        }
        
        return aMayusculasRadikal(cadena.toString());
    }
}
